package com.gmail.wangzdl.selfinclude;

public class SelfIncludeA {
	
	private SelfIncludeA a;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		

		SelfIncludeA a = new SelfIncludeA();
		SelfIncludeA b = new SelfIncludeA();
		a.setA(b);
		a.setA(a);
		System.out.println(a.getA().getA().getA());
	}
	
	SelfIncludeA(SelfIncludeA aa){
		a=aa;
		
	}
	SelfIncludeA(){

		
	}

	SelfIncludeA getA() {
		return a;
	}

	void setA(SelfIncludeA a) {
		this.a = a;
	}

}
